//
//  ArcButton.m
//  Yingzhi
//
//  Created by Maxwell Rose on 15/9/8.
//  Copyright (c) 2015年 yingzhi. All rights reserved.
//

#import "ArcButton.h"

@implementation ArcButton



// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
    
    self.layer.cornerRadius = self.frame.size.height / 2.0;
    self.layer.masksToBounds = YES;
    self.layer.borderWidth = 1;
    self.layer.backgroundColor = [[UIColor whiteColor] CGColor];
    if (self.enabled == YES) {
        self.layer.borderColor = [kColorGreenTheme CGColor];
        [self setTitleColor:kColorGreenTheme forState:UIControlStateNormal];

    }
    else{
        self.layer.borderColor = [kColorGrayHintText CGColor];
//        [self setTitleColor:kColorGrayHintText forState:UIControlStateDisabled];

 
    }
}


@end
